//
//  MHTable+Delete.m
//  数据库的读写封装
//
//  Created by zsgjs on 2017/2/21.
//  Copyright © 2017年 zsgjs. All rights reserved.
//

#import "MHTable+Delete.h"

@implementation MHTable (Delete)

- (void)deleteTable
{
    [self.db deleteTableWithTableName:self.tableName];
}

- (void)deleteWithWhere:(NSString *)where
{
    [self.db clean];
    [self.db setCurrentTableName:self.tableName];
    if (![where isEqual:nil]) {
        [self.db whereWithString:where];
    }
    [self.db delete];
}


@end
